"""
有入下列表对象：
my_list = ["传智教育","黑马程序员","itheima","itcast","itheima","itcast","best"]

请
定义一个空集合
通过for循环遍历列表
在for循环中将列表的元素添加至集合
最终得到去重后的集合对象，并打印输出

"""
# 取两个集合的差集
my_set = set()
my_list = ["传智教育","黑马程序员","itheima","itcast","itheima","itcast","best"]
for i in  my_list:
    my_set.add(i)
print(my_set)